package cn.lovemmd.model.service.Impl;

import cn.lovemmd.model.mapper.CodeMapper;
import cn.lovemmd.model.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CodeServiceImpl implements CodeService {
    private final CodeMapper codeMapper;
    @Autowired
    public CodeServiceImpl(CodeMapper codeMapper) {
        this.codeMapper = codeMapper;
    }

    @Override
    public String FindCode(String code) {
        return codeMapper.FindCode(code);
    }

    @Override
    public Integer FindCodeStatus(String code) {
        return codeMapper.FindCodeStatus(code);
    }

    @Override
    public void updateCodeStatus(String code) {
        codeMapper.updateCodeStatus(code);
    }
}
